package com.atguigu.cloud.hystrix.order80.service;

import com.atguigu.cloud.common.vo.CommonResult;
import com.atguigu.cloud.hystrix.order80.service.impl.PaymentFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT" ,fallback = PaymentFallback.class)
@Service
public interface PaymentService {
    @GetMapping("/payment/hystrix/ok/{id}")
    CommonResult paymentInfo_OK(@PathVariable("id") Integer id);
    @GetMapping("/payment/hystrix/timeout/{id}")
    CommonResult paymentInfo_TimeOut(@PathVariable("id") Integer id);
}
